/**
 * Command.java
 * 卢晓峰
 * Email：lxf9601@gmail.com
 * QQ：297051898
 * Created by 2010-6-6
 */
package com.autoabacus.core.config.component;

import com.autoabacus.core.config.protocol.CommandProtocol.Type;
import com.autoabacus.core.config.protocol.CommandProtocol.UseRange;

/**
 * 操作指令
 * @author 卢晓峰
 */
public class Command {
	
	/** 指令名称 */
	private String name;
	
	/** 指令别名 */
	private String alias;
	
	/** 指令类型 */
	private Type type;
	
	/** 所属表 */
	private String table;
	
	/** 影响表 */
	private String effectTable;
	
	/** 使用范围 */
	private UseRange useRange = UseRange.ANY;
	
	/** 是否显示确认框 */
	private boolean showConfirm = false;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public String getTable() {
		return table;
	}

	public void setTable(String table) {
		this.table = table;
	}

	public UseRange getUseRange() {
		return useRange;
	}

	public void setUseRange(UseRange useRange) {
		this.useRange = useRange;
	}

	public boolean isShowConfirm() {
		return showConfirm;
	}

	public void setShowConfirm(boolean showConfirm) {
		this.showConfirm = showConfirm;
	}

	public String getEffectTable() {
		return effectTable;
	}

	public void setEffectTable(String effectTable) {
		this.effectTable = effectTable;
	}
	
}
